#!/bin/bash

Stab_Log=stab.log

# duration unit: secs
Dura=1200
CC_Nums=5
Loop_Count=39

# debug
# Dura=1
# CC_Nums=2
# Loop_Count=3

if [ $# -eq 1 ];then
    CC_Nums=$1
    echo "concurrency : $1"
fi


echo "Stab Testing" > $Stab_Log

for i in `seq 1 ${Loop_Count}`; do
  dtime=$(date)
  echo -e ">>>>>>>> $i / ${Loop_Count} @ ${dtime} =========\n" >> $Stab_Log

  bash ccreq.sh sample_api_GPD.py ${CC_Nums} ${Dura} >> $Stab_Log

  sleep 1
done

